package com.liang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liang.mall.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liang
 * @since 2021-05-12
 */
public interface RoleService extends IService<Role> {

    IPage<Role> getRoles(Integer pageNum, Integer pageSize, String roleName);

    boolean removeRoleById(Integer id);

    void addRoleResource(Integer id, ArrayList<Integer> menuIdList);

//    void AddRole(Role role, ArrayList<Integer> menuIdList);
}
